package cn.edu.scau.cmi.ema.domain;


import java.io.Serializable;

import java.lang.StringBuilder;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.persistence.*;
import javax.xml.bind.annotation.*;
import cn.edu.scau.cmi.ema.domain.*;
import java.util.Set;
import com.alibaba.fastjson.annotation.JSONField;

@Entity
@NamedQueries({
		@NamedQuery(name = "findAllCrawlerevents", query = "select myCrawlerevent from Crawlerevent myCrawlerevent"),
		@NamedQuery(name = "findCrawlereventByName", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.name = ?1"),
		@NamedQuery(name = "findCrawlereventByNameContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.name like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByFilename", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.filename = ?1"),
		@NamedQuery(name = "findCrawlereventByFilenameContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.filename like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByRownumber", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.rownumber = ?1"),
		@NamedQuery(name = "findCrawlereventByRownumberContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.rownumber like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByMaxcolumn", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.maxcolumn = ?1"),
		@NamedQuery(name = "findCrawlereventByMaxcolumnContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.maxcolumn like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByMiscellaneous", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.miscellaneous = ?1"),
		@NamedQuery(name = "findCrawlereventByMiscellaneousContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.miscellaneous like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByBrand", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.brand = ?1"),
		@NamedQuery(name = "findCrawlereventByBrandContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.brand like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByRedetectapplier", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.redetectapplier = ?1"),
		@NamedQuery(name = "findCrawlereventByRedetectapplierContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.redetectapplier like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByRedetectresult", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.redetectresult = ?1"),
		@NamedQuery(name = "findCrawlereventByRedetectresultContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.redetectresult like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByNumber", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.number = ?1"),
		@NamedQuery(name = "findCrawlereventByNumberContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.number like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDisagreecontent", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.disagreecontent = ?1"),
		@NamedQuery(name = "findCrawlereventByDisagreecontentContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.disagreecontent like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDisagreedate", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.disagreedate = ?1"),
		@NamedQuery(name = "findCrawlereventByDisagreedateContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.disagreedate like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDisagreeconclusion", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.disagreeconclusion = ?1"),
		@NamedQuery(name = "findCrawlereventByDisagreeconclusionContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.disagreeconclusion like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDisagreeapply", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.disagreeapply = ?1"),
		@NamedQuery(name = "findCrawlereventByDisagreeapplyContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.disagreeapply like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByIsredetectapply", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.isredetectapply = ?1"),
		@NamedQuery(name = "findCrawlereventByIsredetectapplyContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.isredetectapply like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectasksource", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectasksource = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectasksourceContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectasksource like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectannounce", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectannounce = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectannounceContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectannounce like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectannouncedate", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectannouncedate = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectannouncedateContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectannouncedate like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectdate", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectdate = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectdateContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectdate like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectdepartment", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectdepartment = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectdepartmentContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectdepartment like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectstandard", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectstandard = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectstandardContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectstandard like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectstandardvalue", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectstandardvalue = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectstandardvalueContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectstandardvalue like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectfeature", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectfeature = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectfeatureContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectfeature like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectlink", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectlink = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectlinkContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectlink like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectresult", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectresult = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectresultContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectresult like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectnumber", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectnumber = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectnumberContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectnumber like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectdescription", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectdescription = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectdescriptionContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectdescription like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDetectproject", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectproject = ?1"),
		@NamedQuery(name = "findCrawlereventByDetectprojectContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.detectproject like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByProducer", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.producer = ?1"),
		@NamedQuery(name = "findCrawlereventByProducerContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.producer like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByProduceraddress", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.produceraddress = ?1"),
		@NamedQuery(name = "findCrawlereventByProduceraddressContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.produceraddress like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByProducedate", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.producedate = ?1"),
		@NamedQuery(name = "findCrawlereventByProducedateContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.producedate like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByNetplatform", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.netplatform = ?1"),
		@NamedQuery(name = "findCrawlereventByNetplatformContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.netplatform like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventBySubject", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.subject = ?1"),
		@NamedQuery(name = "findCrawlereventBySubjectContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.subject like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventBySubjectaddress", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.subjectaddress = ?1"),
		@NamedQuery(name = "findCrawlereventBySubjectaddressContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.subjectaddress like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByPackagemethod", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.packagemethod = ?1"),
		@NamedQuery(name = "findCrawlereventByPackagemethodContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.packagemethod like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByPurchasedate", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.purchasedate = ?1"),
		@NamedQuery(name = "findCrawlereventByPurchasedateContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.purchasedate like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByFood", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.food = ?1"),
		@NamedQuery(name = "findCrawlereventByFoodContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.food like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByFoodbatch", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.foodbatch = ?1"),
		@NamedQuery(name = "findCrawlereventByFoodbatchContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.foodbatch like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByFoodtype", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.foodtype = ?1"),
		@NamedQuery(name = "findCrawlereventByFoodtypeContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.foodtype like concat('%',?1,'%')"),
		@NamedQuery(name = "findCrawlereventByDescription", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.description = ?1"),
		@NamedQuery(name = "findCrawlereventByDescriptionContaining", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.description like concat('%',?1,'%')"),
		@NamedQuery(name = "findAllCrawlereventsByCrawlerdetectstatus", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.crawlerdetectstatus.id = ?1"),
		@NamedQuery(name = "findCrawlereventById", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.id = ?1"),
		@NamedQuery(name = "findCrawlereventByPrimaryKey", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.id = ?1 "),
		@NamedQuery(name = "deleteCrawlereventsByIds", query = "delete Crawlerevent where id in (?1)"),
		@NamedQuery(name = "findCrawlereventsByIds", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where myCrawlerevent.id in (?1)"),
		@NamedQuery(name = "findCrawlereventByPhyscialPrimaryKey", query = "select myCrawlerevent from Crawlerevent myCrawlerevent where  myCrawlerevent.filename = ?1 and myCrawlerevent.rownumber = ?2"),
		@NamedQuery(name = "countCrawlereventsByName", query = "select count(myCrawlerevent)  from Crawlerevent myCrawlerevent where myCrawlerevent.name like concat('%',?1,'%')") })
@Table(catalog = "ema", name = "crawlerevent")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(namespace = "ema/cn/edu/scau/cmi/ema/domain", name = "Crawlerevent")
@XmlRootElement(namespace = "ema/cn/edu/scau/cmi/ema/domain")

public class Crawlerevent implements Serializable, Comparable<Crawlerevent> {

	private static final long serialVersionUID = 1L;

	@Column(name = "id", nullable = false)
	@Basic(fetch = FetchType.EAGER)
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@XmlElement
	Integer id;

	@Column(name = "name")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String name;

	@Column(name = "filename")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String filename;

	@Column(name = "rownumber")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String rownumber;

	@Column(name = "maxcolumn")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String maxcolumn;

	@Column(name = "miscellaneous")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String miscellaneous;

	@Column(name = "brand")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String brand;

	@Column(name = "redetectapplier")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String redetectapplier;

	@Column(name = "redetectresult")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String redetectresult;

	@Column(name = "number")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String number;

	@Column(name = "disagreecontent")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String disagreecontent;

	@Column(name = "disagreedate")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String disagreedate;

	@Column(name = "disagreeconclusion")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String disagreeconclusion;

	@Column(name = "disagreeapply")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String disagreeapply;

	@Column(name = "isredetectapply")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String isredetectapply;

	@Column(name = "detectasksource")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectasksource;

	@Column(name = "detectannounce")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectannounce;

	@Column(name = "detectannouncedate")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectannouncedate;

	@Column(name = "detectdate")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectdate;

	@Column(name = "detectdepartment")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectdepartment;

	@Column(name = "detectstandard")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectstandard;

	@Column(name = "detectstandardvalue")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectstandardvalue;

	@Column(name = "detectfeature")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectfeature;

	@Column(name = "detectlink")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectlink;

	@Column(name = "detectresult")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectresult;

	@Column(name = "detectnumber")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectnumber;

	@Column(name = "detectdescription")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectdescription;

	@Column(name = "detectproject")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectproject;

	@Column(name = "producer")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String producer;

	@Column(name = "produceraddress")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String produceraddress;

	@Column(name = "producedate")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String producedate;

	@Column(name = "netplatform")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String netplatform;

	@Column(name = "subject")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String subject;

	@Column(name = "subjectaddress")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String subjectaddress;

	@Column(name = "packagemethod")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String packagemethod;

	@Column(name = "purchasedate")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String purchasedate;

	@Column(name = "food")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String food;

	@Column(name = "foodbatch")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String foodbatch;

	@Column(name = "foodtype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String foodtype;

	@Column(name = "description")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String description;
	@JSONField(serialize = false)
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns({ @JoinColumn(name = "crawlerdetectstatus", referencedColumnName = "id", nullable = false) })
	@XmlTransient
	Crawlerdetectstatus crawlerdetectstatus;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return this.id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getFilename() {
		return this.filename;
	}

	public void setRownumber(String rownumber) {
		this.rownumber = rownumber;
	}

	public String getRownumber() {
		return this.rownumber;
	}

	public void setMaxcolumn(String maxcolumn) {
		this.maxcolumn = maxcolumn;
	}

	public String getMaxcolumn() {
		return this.maxcolumn;
	}

	public void setMiscellaneous(String miscellaneous) {
		this.miscellaneous = miscellaneous;
	}

	public String getMiscellaneous() {
		return this.miscellaneous;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getBrand() {
		return this.brand;
	}

	public void setRedetectapplier(String redetectapplier) {
		this.redetectapplier = redetectapplier;
	}

	public String getRedetectapplier() {
		return this.redetectapplier;
	}

	public void setRedetectresult(String redetectresult) {
		this.redetectresult = redetectresult;
	}

	public String getRedetectresult() {
		return this.redetectresult;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getNumber() {
		return this.number;
	}

	public void setDisagreecontent(String disagreecontent) {
		this.disagreecontent = disagreecontent;
	}

	public String getDisagreecontent() {
		return this.disagreecontent;
	}

	public void setDisagreedate(String disagreedate) {
		this.disagreedate = disagreedate;
	}

	public String getDisagreedate() {
		return this.disagreedate;
	}

	public void setDisagreeconclusion(String disagreeconclusion) {
		this.disagreeconclusion = disagreeconclusion;
	}

	public String getDisagreeconclusion() {
		return this.disagreeconclusion;
	}

	public void setDisagreeapply(String disagreeapply) {
		this.disagreeapply = disagreeapply;
	}

	public String getDisagreeapply() {
		return this.disagreeapply;
	}

	public void setIsredetectapply(String isredetectapply) {
		this.isredetectapply = isredetectapply;
	}

	public String getIsredetectapply() {
		return this.isredetectapply;
	}

	public void setDetectasksource(String detectasksource) {
		this.detectasksource = detectasksource;
	}

	public String getDetectasksource() {
		return this.detectasksource;
	}

	public void setDetectannounce(String detectannounce) {
		this.detectannounce = detectannounce;
	}

	public String getDetectannounce() {
		return this.detectannounce;
	}

	public void setDetectannouncedate(String detectannouncedate) {
		this.detectannouncedate = detectannouncedate;
	}

	public String getDetectannouncedate() {
		return this.detectannouncedate;
	}

	public void setDetectdate(String detectdate) {
		this.detectdate = detectdate;
	}

	public String getDetectdate() {
		return this.detectdate;
	}

	public void setDetectdepartment(String detectdepartment) {
		this.detectdepartment = detectdepartment;
	}

	public String getDetectdepartment() {
		return this.detectdepartment;
	}

	public void setDetectstandard(String detectstandard) {
		this.detectstandard = detectstandard;
	}

	public String getDetectstandard() {
		return this.detectstandard;
	}

	public void setDetectstandardvalue(String detectstandardvalue) {
		this.detectstandardvalue = detectstandardvalue;
	}

	public String getDetectstandardvalue() {
		return this.detectstandardvalue;
	}

	public void setDetectfeature(String detectfeature) {
		this.detectfeature = detectfeature;
	}

	public String getDetectfeature() {
		return this.detectfeature;
	}

	public void setDetectlink(String detectlink) {
		this.detectlink = detectlink;
	}

	public String getDetectlink() {
		return this.detectlink;
	}

	public void setDetectresult(String detectresult) {
		this.detectresult = detectresult;
	}

	public String getDetectresult() {
		return this.detectresult;
	}

	public void setDetectnumber(String detectnumber) {
		this.detectnumber = detectnumber;
	}

	public String getDetectnumber() {
		return this.detectnumber;
	}

	public void setDetectdescription(String detectdescription) {
		this.detectdescription = detectdescription;
	}

	public String getDetectdescription() {
		return this.detectdescription;
	}

	public void setDetectproject(String detectproject) {
		this.detectproject = detectproject;
	}

	public String getDetectproject() {
		return this.detectproject;
	}

	public void setProducer(String producer) {
		this.producer = producer;
	}

	public String getProducer() {
		return this.producer;
	}

	public void setProduceraddress(String produceraddress) {
		this.produceraddress = produceraddress;
	}

	public String getProduceraddress() {
		return this.produceraddress;
	}

	public void setProducedate(String producedate) {
		this.producedate = producedate;
	}

	public String getProducedate() {
		return this.producedate;
	}

	public void setNetplatform(String netplatform) {
		this.netplatform = netplatform;
	}

	public String getNetplatform() {
		return this.netplatform;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setSubjectaddress(String subjectaddress) {
		this.subjectaddress = subjectaddress;
	}

	public String getSubjectaddress() {
		return this.subjectaddress;
	}

	public void setPackagemethod(String packagemethod) {
		this.packagemethod = packagemethod;
	}

	public String getPackagemethod() {
		return this.packagemethod;
	}

	public void setPurchasedate(String purchasedate) {
		this.purchasedate = purchasedate;
	}

	public String getPurchasedate() {
		return this.purchasedate;
	}

	public void setFood(String food) {
		this.food = food;
	}

	public String getFood() {
		return this.food;
	}

	public void setFoodbatch(String foodbatch) {
		this.foodbatch = foodbatch;
	}

	public String getFoodbatch() {
		return this.foodbatch;
	}

	public void setFoodtype(String foodtype) {
		this.foodtype = foodtype;
	}

	public String getFoodtype() {
		return this.foodtype;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return this.description;
	}

	public void setCrawlerdetectstatus(Crawlerdetectstatus crawlerdetectstatus) {
		this.crawlerdetectstatus = crawlerdetectstatus;
	}

	public Crawlerdetectstatus getCrawlerdetectstatus() {
		return crawlerdetectstatus;
	}

	public void copy(Crawlerevent that) {

		setId(that.getId());

		setName(that.getName());
		setFilename(that.getFilename());
		setRownumber(that.getRownumber());
		setMaxcolumn(that.getMaxcolumn());
		setMiscellaneous(that.getMiscellaneous());
		setBrand(that.getBrand());
		setRedetectapplier(that.getRedetectapplier());
		setRedetectresult(that.getRedetectresult());
		setNumber(that.getNumber());
		setDisagreecontent(that.getDisagreecontent());
		setDisagreedate(that.getDisagreedate());
		setDisagreeconclusion(that.getDisagreeconclusion());
		setDisagreeapply(that.getDisagreeapply());
		setIsredetectapply(that.getIsredetectapply());
		setDetectasksource(that.getDetectasksource());
		setDetectannounce(that.getDetectannounce());
		setDetectannouncedate(that.getDetectannouncedate());
		setDetectdate(that.getDetectdate());
		setDetectdepartment(that.getDetectdepartment());
		setDetectstandard(that.getDetectstandard());
		setDetectstandardvalue(that.getDetectstandardvalue());
		setDetectfeature(that.getDetectfeature());
		setDetectlink(that.getDetectlink());
		setDetectresult(that.getDetectresult());
		setDetectnumber(that.getDetectnumber());
		setDetectdescription(that.getDetectdescription());
		setDetectproject(that.getDetectproject());
		setProducer(that.getProducer());
		setProduceraddress(that.getProduceraddress());
		setProducedate(that.getProducedate());
		setNetplatform(that.getNetplatform());
		setSubject(that.getSubject());
		setSubjectaddress(that.getSubjectaddress());
		setPackagemethod(that.getPackagemethod());
		setPurchasedate(that.getPurchasedate());
		setFood(that.getFood());
		setFoodbatch(that.getFoodbatch());
		setFoodtype(that.getFoodtype());
		setDescription(that.getDescription());

		setCrawlerdetectstatus(that.getCrawlerdetectstatus());

	}

	public Crawlerevent() {

	}

	@Override
	public String toString() {

		StringBuilder buffer = new StringBuilder();

		buffer.append("id=[").append(id).append("] ");

		buffer.append("name=[").append(name).append("] ");
		buffer.append("filename=[").append(filename).append("] ");
		buffer.append("rownumber=[").append(rownumber).append("] ");
		buffer.append("maxcolumn=[").append(maxcolumn).append("] ");
		buffer.append("miscellaneous=[").append(miscellaneous).append("] ");
		buffer.append("brand=[").append(brand).append("] ");
		buffer.append("redetectapplier=[").append(redetectapplier).append("] ");
		buffer.append("redetectresult=[").append(redetectresult).append("] ");
		buffer.append("number=[").append(number).append("] ");
		buffer.append("disagreecontent=[").append(disagreecontent).append("] ");
		buffer.append("disagreedate=[").append(disagreedate).append("] ");
		buffer.append("disagreeconclusion=[").append(disagreeconclusion).append("] ");
		buffer.append("disagreeapply=[").append(disagreeapply).append("] ");
		buffer.append("isredetectapply=[").append(isredetectapply).append("] ");
		buffer.append("detectasksource=[").append(detectasksource).append("] ");
		buffer.append("detectannounce=[").append(detectannounce).append("] ");
		buffer.append("detectannouncedate=[").append(detectannouncedate).append("] ");
		buffer.append("detectdate=[").append(detectdate).append("] ");
		buffer.append("detectdepartment=[").append(detectdepartment).append("] ");
		buffer.append("detectstandard=[").append(detectstandard).append("] ");
		buffer.append("detectstandardvalue=[").append(detectstandardvalue).append("] ");
		buffer.append("detectfeature=[").append(detectfeature).append("] ");
		buffer.append("detectlink=[").append(detectlink).append("] ");
		buffer.append("detectresult=[").append(detectresult).append("] ");
		buffer.append("detectnumber=[").append(detectnumber).append("] ");
		buffer.append("detectdescription=[").append(detectdescription).append("] ");
		buffer.append("detectproject=[").append(detectproject).append("] ");
		buffer.append("producer=[").append(producer).append("] ");
		buffer.append("produceraddress=[").append(produceraddress).append("] ");
		buffer.append("producedate=[").append(producedate).append("] ");
		buffer.append("netplatform=[").append(netplatform).append("] ");
		buffer.append("subject=[").append(subject).append("] ");
		buffer.append("subjectaddress=[").append(subjectaddress).append("] ");
		buffer.append("packagemethod=[").append(packagemethod).append("] ");
		buffer.append("purchasedate=[").append(purchasedate).append("] ");
		buffer.append("food=[").append(food).append("] ");
		buffer.append("foodbatch=[").append(foodbatch).append("] ");
		buffer.append("foodtype=[").append(foodtype).append("] ");
		buffer.append("description=[").append(description).append("] ");

		return buffer.toString();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = (int) (prime * result + ((id == null) ? 0 : id.hashCode()));
		return result;
	}

	public boolean equals(Object obj) {
		if (obj == this)
			return true;
		if (!(obj instanceof Crawlerevent))
			return false;
		Crawlerevent comparedCrawlerevent = (Crawlerevent) obj;
		if (!CheckPropertyEqual(this.filename, comparedCrawlerevent.filename)) {
			return false;
		}
		if (!CheckPropertyEqual(this.rownumber, comparedCrawlerevent.rownumber)) {
			return false;
		}
		return true;
	}

	public static <T> boolean CheckPropertyEqual(T originProperty, T comparedProperty) {
		// 基本类型经过参数传递后会自动装箱
		String[] className = originProperty.getClass().getName().split("\\.");
		if (className[0].equals("java") && className[1].equals("math")) {
			return ((Comparable) originProperty).compareTo(comparedProperty) == 0 ? true : false;
		} else {
			return originProperty.equals(comparedProperty);
		}
	}

	@Override
	public int compareTo(Crawlerevent o) {
		if (this.getId() > o.getId()) {
			return 1;
		} else if (this.getId() == o.getId()) {
			return 0;
		} else {
			return -1;
		}

	}
}
